import cn.ac.iie.di.ban.jr.rest.global.GlobalParas;
import cn.ac.iie.di.ban.jr.rest.handlers.dayhot.DayHotJsongHandler;
import cn.ac.iie.di.ban.jr.rest.util.httpUtils;
import com.alibaba.fastjson.JSONObject;
import org.apache.commons.codec.binary.Base64;
import org.apache.commons.configuration2.ex.ConfigurationException;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http.params.HttpParams;
import org.apache.http.util.EntityUtils;
import org.apache.log4j.Logger;

import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by Black-Laptop on 8/18/2017.
 */
public class test {

    public static Logger LOG = Logger.getLogger(DayHotJsongHandler.class);

//    private static Logger logger = Logger.getLogger(HttpPostUtils.class);
    public static void main(String[] args) throws ConfigurationException, IOException {
//        String str = "5rOo5oSP77yB5Lq65rCR5biB5oKE5oKE5YGa5LqG6L Z5Lu25aSn5LqL77yM5Yir6K 05L2g5rKh5Y X55uK77yB";
//        byte[] ansBytes = Base64.decodeBase64(str);
//        String s = new String(ansBytes, "utf-8");
//        System.out.println(s);
//        String str = "YUhSMGNEb3ZMMjF3TG5kbGFYaHBiaTV4Y1M1amIyMHZjejlmWDJKcGVqMU5hazAxVFdwQmVFNVVS\\r\\nVFJOUVQwOUptMXBaRDB5TmpVeU1UUXlOekkxSm1sa2VEMHhKbk51UFRNek1HTXpNbVEyWmpZeFlq\\r\\nQXlNelJsWWprME5HTmpNVFUzTmpRMVpqSmhKbU5vYTNOdFBXSmtOR00yWVdFMk9HRXpZbVV6WWpC\\r\\nak1USmlPREZpT0daaVpqWXhZMll4TkdZM05qSmtaVFpqTkRreU56UXlNV0ZpTVdJeVpURTJZVGcw\\r\\nWVdSaU16UXlNMlF3TmpoaE9UbGtNalFqY21RTg==\\r\\n\"";
//
//        String[] ls = str.split("\\\\r\\\\n");
//        for (String l: ls) {
////            System.out.println(l);
//        }
        //        GlobalParas.getIstance(GlobalParas.DEFAULT_CONFIGURATION);
//        String str = "PHA+54m55pyX5pmu6K6/5Y2O5rS96LCI6LS45piT5ZCI5L2c55u45YWz5LqL5a6cPC9wPg==\r\n";
//        byte[] ansBytes = Base64.decodeBase64(str);
//        String ans = new String(ansBytes);
//        System.out.println(ans);
        String tempjson = "{\n" +
                "\t\"datatype\": \"dayhot\",\n" +
                "\t\"opid\": \"D61F02FF1B02DC15441A469E0E8A490F\",\n" +
                "\t\"sendtime\": 1503478201980,\n" +
                "\t\"source\": {\n" +
                "            \"code\": 200,\n" +
                "        \"desc\": \"请求成功\",\n" +
                "        \"data\": {\n" +
                "            \"createtime\": \"2017-08-23 04:50:01\",\n" +
                "            \"list\": [{\n" +
                "                \"Title\": \"走特批，复牌就涨停，联通混改却仍是背水一战?  | 小巴问大头\",\n" +
                "                \"content\": \"\",\n" +
                "                \"hotValue\": \"53665\",\n" +
                "                \"sortId\": 1,\n" +
                "                \"type\": \"0\\n\",\n" +
                "                \"url\": \"aHR0cDovL21wLndlaXhpbi5xcS5jb20vcz9fX2Jpej1NekEzT1RNNU5Ua3hOQT09Jm1pZD0yNjUyNDI5OTc4JmlkeD0xJnNuPTE5YzdjZGQzMDRmMDMyMmViMjBiNDNjNmQyNmZhNWJkJmNoa3NtPTg0NTg1M2JmYjMyZmRhYTlmZGNkNThjZTNkNmI0YTk3OTgzNWZiYTYwZGY4Y2M5M2E3NDVkMGE5OTE5NzQ3ZjM0OGFkNTA5YTczZTAjcmQN\"\n" +
                "            },\n" +
                "            {\n" +
                "                \"Title\": \"银行卡地震！今天，刘强东正式宣布！\",\n" +
                "                \"content\": \"\",\n" +
                "                \"hotValue\": \"44610\",\n" +
                "                \"sortId\": 2,\n" +
                "                \"type\": \"0\\n\",\n" +
                "                \"url\": \"aHR0cDovL21wLndlaXhpbi5xcS5jb20vcz9fX2Jpej1Nak01TmpBeU1UWXlNZz09Jm1pZD0yNjU4Mjc3NTQzJmlkeD0xJnNuPTNmY2UwY2ExNTg5MjA3MTM4OTAzOGUyZjkyYWFiYjRiJmNoa3NtPWJkNjkyY2JlOGExZWE1YThlNzI0MjUwZmViM2U2MDY4MmUwMzJmNmU2NGVhZmUzZmJmZTg5N2IxYzFjOGExNWY0NDgzZDA5MjZkNmMjcmQN\"\n" +
                "            },\n" +
                "            {\n" +
                "                \"Title\": \"韩媒哀叹：造船业刚要起死回生，超级救命大单就被中国抢走了！\",\n" +
                "                \"content\": \"\",\n" +
                "                \"hotValue\": \"42074\",\n" +
                "                \"sortId\": 3,\n" +
                "                \"type\": \"0\\n\",\n" +
                "                \"url\": \"aHR0cDovL21wLndlaXhpbi5xcS5jb20vcz9fX2Jpej1Nak01T0Rnd09EWTJNQT09Jm1pZD0yNzM2Nzg1MjM0JmlkeD0xJnNuPTJiMzU1OWI3ZTkyYzU0MzJjOTNmY2Y0MTIzN2ZlOGEwJmNoa3NtPTgwMTFiYTY5Yjc2NjMzN2ZiNDI1YWM2NTg2NzY0ZWQwMDNmMjE4MjU2MTlmNWRmZTgyZDc1YmFhYTEzMTI5MzgxNTNlZDkzYzVhZTEjcmQN\"\n" +
                "            },\n" +
                "            {\n" +
                "                \"Title\": \"官方：业务招待费、差旅费、福利费及会议费抵扣进项口径\",\n" +
                "                \"content\": \"\",\n" +
                "                \"hotValue\": \"37345\",\n" +
                "                \"sortId\": 4,\n" +
                "                \"type\": \"0\\n\",\n" +
                "                \"url\": \"aHR0cDovL21wLndlaXhpbi5xcS5jb20vcz9fX2Jpej1Nak01TWpRek1qSTJNQT09Jm1pZD0yNjUyNTI5MDA5JmlkeD0xJnNuPTk1ZTE2NGQ1YjFlMDIwYTY5ODk1MDNiZmFiMDc0N2M3JmNoa3NtPWJkNDhhODlhOGEzZjIxOGNjMWQxNDBjZjU5NDAyNWYxZjFmZjI2MjgwMjc0YjgxNWZiMzA3ZmFkNzBlNWRlYTQ2MjFkNzRmN2VkNzkjcmQN\"\n" +
                "            },\n" +
                "            {\n" +
                "                \"Title\": \"中国租金回报率地图：北上广深垫底，第一名你想不到；曝饿了么5亿美元收购百度外卖，再带3亿美元流量 | 功夫早课（音频版）\",\n" +
                "                \"content\": \"\",\n" +
                "                \"hotValue\": \"31200\",\n" +
                "                \"sortId\": 5,\n" +
                "                \"type\": \"0\\n\",\n" +
                "                \"url\": \"aHR0cDovL21wLndlaXhpbi5xcS5jb20vcz9fX2Jpej1Nekl6T1RBM05UQTVNZz09Jm1pZD0yNjUyNDQzMjIyJmlkeD00JnNuPTVlOGUxMWUzNGNlZWE4NTQwM2FmYWMxZjEwNmE1ZTY3JmNoa3NtPWYyYzIxODJkYzViNTkxM2IxMzNhYTJkNmQzYTlhYzM5OWM0ZTQzOWJlNTExYmQ1M2Q0OGY0NmQ2MWZhMzRkYzU1NjViMmVkY2Y4ZmUjcmQN\"\n" +
                "            },\n" +
                "            {\n" +
                "                \"Title\": \"联通混改上不了车？别着急，这里有最全央企混改投资机遇攻略\",\n" +
                "                \"content\": \"\",\n" +
                "                \"hotValue\": \"26262\",\n" +
                "                \"sortId\": 6,\n" +
                "                \"type\": \"0\\n\",\n" +
                "                \"url\": \"aHR0cDovL21wLndlaXhpbi5xcS5jb20vcz9fX2Jpej1Nak01T0RRNE1qZ3lNUT09Jm1pZD0yNjUxMTEyNzI4JmlkeD0xJnNuPWZkMDljODg0OTdlMGQ4ZGZjM2NhOTVkN2M3OWU1ODY5JmNoa3NtPWJkM2E2M2YyOGE0ZGVhZTRhYWI3YTNkMjNlNDQxZjg4ZDgyMzY4ZTQwNDRkMGY1YjU2Y2I1MzZjZGI3OWNhNTczOTM2NWU5OTdmMmQjcmQN\"\n" +
                "            },\n" +
                "            {\n" +
                "                \"Title\": \"续涨！今日铜价上涨！\",\n" +
                "                \"content\": \"\",\n" +
                "                \"hotValue\": \"25589\",\n" +
                "                \"sortId\": 7,\n" +
                "                \"type\": \"0\\n\",\n" +
                "                \"url\": \"aHR0cDovL21wLndlaXhpbi5xcS5jb20vcz9fX2Jpej1NekF4TWpjek9UQTNNZz09Jm1pZD0yNjUwOTY2ODg1JmlkeD0xJnNuPWY4YTg5ZDUzYTBjODBlNmM5YjgxMzExYWE3ZjY2M2EwJmNoa3NtPTgwNWIxYzBhYjcyYzk1MWM1OTcxMDE1MTYxNzNiZDYxY2JlMDUwNDMzMDRkYTYyMTg2NDg4ZTg2OGNmNjg2OGE5MDFjOTllMmJlYTUjcmQN\"\n" +
                "            },\n" +
                "            {\n" +
                "                \"Title\": \"重磅：中国最强私募基金榜单揭晓！\",\n" +
                "                \"content\": \"\",\n" +
                "                \"hotValue\": \"23087\",\n" +
                "                \"sortId\": 8,\n" +
                "                \"type\": \"0\\n\",\n" +
                "                \"url\": \"aHR0cDovL21wLndlaXhpbi5xcS5jb20vcz9fX2Jpej1NekE1TURFek5qUXdNQT09Jm1pZD0yNjU1MDk4NjE4JmlkeD0xJnNuPTI4M2JmZmU2NDY1MzRhN2ZmYmNhZWU1YjEyYzQwMjNhJmNoa3NtPThiYTU3Y2M1YmNkMmY1ZDM1NzEwNmMxMzMyYzM5MDRjMjdkNDBlMTA4NzVhZjQyMTg2NzM4ZjVhMjk3MzAzYzA1YWM1MjJhZmUzYjgjcmQN\"\n" +
                "            },\n" +
                "            {\n" +
                "                \"Title\": \"房子/股票/基金都买了，为何家庭资产还没翻倍? | 今晚晓课堂\",\n" +
                "                \"content\": \"\",\n" +
                "                \"hotValue\": \"21307\",\n" +
                "                \"sortId\": 9,\n" +
                "                \"type\": \"0\\n\",\n" +
                "                \"url\": \"aHR0cDovL21wLndlaXhpbi5xcS5jb20vcz9fX2Jpej1NekEzT1RNNU5Ua3hOQT09Jm1pZD0yNjUyNDI5OTc4JmlkeD0yJnNuPWZhZDJlMGRhYmNhYTlhOGRmNTVjMmQ4OTc1Y2FlMTI4JmNoa3NtPTg0NTg1M2JmYjMyZmRhYTk4M2NhY2EwMDZkZDVmYzVhYjIzN2I1MWE0MjRiOTkxMTRkZTQ4OGNmNTNhZDkyOWUzNWZmODc1NzNjOWEjcmQN\"\n" +
                "            },\n" +
                "            {\n" +
                "                \"Title\": \"绝佳买入机会！下一支科大讯飞，互联网金融 高送转牛股震撼来袭！\",\n" +
                "                \"content\": \"\",\n" +
                "                \"hotValue\": \"20494\",\n" +
                "                \"sortId\": 10,\n" +
                "                \"type\": \"0\\n\",\n" +
                "                \"url\": \"aHR0cDovL21wLndlaXhpbi5xcS5jb20vcz9fX2Jpej1NekEzTkRVME9Ea3lOUT09Jm1pZD0yNjUwODM2NzI5JmlkeD0xJnNuPWZiODY3ZWU0NTE3Mzk3OWQyYWI2ZDdmYmU5MzgwNzFjJmNoa3NtPTg0OGEzZDJiYjNmZGI0M2Q4ODhhYWMxMGRlZjA1ODIzNDUyZjNmMzRjNGVlOTUxODI3OWEwOGVjZTQ5MTY4ZjJhZDZhODJlYTU4YTIjcmQN\"\n" +
                "            },\n" +
                "            {\n" +
                "                \"Title\": \"震惊！这位“省尾”书记竟如此干事，引发40多万人聚集，习总书记亲笔批示……\",\n" +
                "                \"content\": \"\",\n" +
                "                \"hotValue\": \"103564\",\n" +
                "                \"sortId\": 11,\n" +
                "                \"type\": \"1\\n\",\n" +
                "                \"url\": \"aHR0cDovL21wLndlaXhpbi5xcS5jb20vcz9fX2Jpej1NekE1T1RReU1EZ3lPUT09Jm1pZD0yNjUyNTU2NzUxJmlkeD0zJnNuPWE4NDMxMDk3OWVmMjc4NzgyY2NlODliNGEyZmQxYzlhJmNoa3NtPThiNmNmMjNkYmMxYjdiMmIwMzk5MWM2MDE3YzAzZmY1NmZhMDc0MjBhMTM2OGE2N2NlM2E4NGE2OGYxNmNmYmUwZmE4ODA2YWQ0YWYjcmQN\"\n" +
                "            },\n" +
                "            {\n" +
                "                \"Title\": \"惊不惊喜？国务院暖政袭来，你的家乡正在发生这些改变！\",\n" +
                "                \"content\": \"\",\n" +
                "                \"hotValue\": \"100005\",\n" +
                "                \"sortId\": 12,\n" +
                "                \"type\": \"1\\n\",\n" +
                "                \"url\": \"aHR0cDovL21wLndlaXhpbi5xcS5jb20vcz9fX2Jpej1NekE0TURBME16Y3dNQT09Jm1pZD0yNjUyNDkyMzA0JmlkeD0xJnNuPTlhYmI2M2NlNWQxNDcxNGQ4ZTgwYzdmMDllMzg5NTZlJmNoa3NtPTg0NDczOWNiYjMzMGIwZGRlNDFmMjk5NmFiOGU1YmRkZWZhM2JlZDk5YjQzOTdhN2JkZmY2Y2ViYzcyYjNiNDYxYWZlZGY2ZWRlOGMjcmQN\"\n" +
                "            },\n" +
                "            {\n" +
                "                \"Title\": \"外交部证实“中印军人边境互掷石头”：印军冲撞致中方人员受伤\",\n" +
                "                \"content\": \"\",\n" +
                "                \"hotValue\": \"100000\",\n" +
                "                \"sortId\": 13,\n" +
                "                \"type\": \"1\\n\",\n" +
                "                \"url\": \"aHR0cDovL21wLndlaXhpbi5xcS5jb20vcz9fX2Jpej1Nak01TWpBeE5ETTRNQT09Jm1pZD0yNjY2MTY0NzMwJmlkeD0xJnNuPTRiZGQ2MGMzMWNhOTMxY2I5MDQwMmY3M2E3ZDAxMDNjJmNoa3NtPWJkYjIxOGI5OGFjNTkxYWY5M2M4NmI2OWNkOWUwYmJkMWU5NjNlNjg0NTM1OTZiOThlMDcxNmU1NTc5YTQzOGYxYjkxNGEyMzc0NGMjcmQN\"\n" +
                "            },\n" +
                "            {\n" +
                "                \"Title\": \"习近平总书记珍视的那个瑰宝，如今愈加熠熠生辉！\",\n" +
                "                \"content\": \"\",\n" +
                "                \"hotValue\": \"100000\",\n" +
                "                \"sortId\": 14,\n" +
                "                \"type\": \"1\\n\",\n" +
                "                \"url\": \"aHR0cDovL21wLndlaXhpbi5xcS5jb20vcz9fX2Jpej1NekE0TkRJM05qY3lOQT09Jm1pZD0yNjQ5MzYxMjcwJmlkeD0xJnNuPWY2Y2VlYWJkYmRhMGEyOWI5YzkwZmY2NWI4Y2YzNDg2JmNoa3NtPTg3ZjcwZmVkYjA4MDg2ZmIzYmY4YWQ4YTRhOGJhYTIzODgyNmNlMzM0ZmJmMzA2MGE0MDc1NmU2NWFjNzE5ZWQzOWVkYzQzOTk1NWEjcmQN\"\n" +
                "            },\n" +
                "            {\n" +
                "                \"Title\": \"动手了！中印两军爆发肢体冲突，刚刚，外交部作出正式回应（新德里现在想要和平了？）\",\n" +
                "                \"content\": \"\",\n" +
                "                \"hotValue\": \"72125\",\n" +
                "                \"sortId\": 15,\n" +
                "                \"type\": \"1\\n\",\n" +
                "                \"url\": \"aHR0cDovL21wLndlaXhpbi5xcS5jb20vcz9fX2Jpej1NekE0TkRJeU9UTXhOdz09Jm1pZD0yNjUwMjQ1ODM2JmlkeD0xJnNuPTAzOTMxODVkMzUxY2ZmOWNlOTZkZGM5NTA1MWI0N2YxJmNoa3NtPTg3ZTk0NzY2YjA5ZWNlNzBjZTY1YjljNjhjMmZhOTNmNmE1YjFjZmI4YjgwZDUzZDEwZTA1NDNjNmY3OGM2YmNlOWFjOTdiZTBiMWEjcmQN\"\n" +
                "            },\n" +
                "            {\n" +
                "                \"Title\": \"中国大笔一挥：印度被出卖，美国不敢帮！\",\n" +
                "                \"content\": \"\",\n" +
                "                \"hotValue\": \"64459\",\n" +
                "                \"sortId\": 16,\n" +
                "                \"type\": \"1\\n\",\n" +
                "                \"url\": \"aHR0cDovL21wLndlaXhpbi5xcS5jb20vcz9fX2Jpej1NekE1T1RBeU16SXdPQT09Jm1pZD0yNjUyMTM4OTIxJmlkeD0xJnNuPTI1YzIxNDFkMjBlZDRiMzFlNDE4ZTMyYjM2ZTE5MmE1JmNoa3NtPThiNjg2ZGFlYmMxZmU0YjhkZGVlM2MyYmUzYWFhMjg5ZGY3ODJhNjcxNDk3YWZmNzY1YzVjYzM3NTQ4Y2QzMzZlMjBlNzUzODI2YjcjcmQN\"\n" +
                "            },\n" +
                "            {\n" +
                "                \"Title\": \"追踪 | 美舰为何一而再撞商船？是“疲劳驾驶”吗？\",\n" +
                "                \"content\": \"\",\n" +
                "                \"hotValue\": \"59276\",\n" +
                "                \"sortId\": 17,\n" +
                "                \"type\": \"1\\n\",\n" +
                "                \"url\": \"aHR0cDovL21wLndlaXhpbi5xcS5jb20vcz9fX2Jpej1NVEkwTURVM05EWXdNUT09Jm1pZD0yNjU2NjA0ODIzJmlkeD0yJnNuPWUwMjY5MzRiOWUzYWFmMzJmZGYzMzg3OWNlY2MyNzQwJmNoa3NtPTdhNjI2ZjcxNGQxNWU2NjczN2FlNDU2NjRiMmRmMDlhMjk3ZTI5ZjhmN2MxNWRjOWYzZGEyMzM3M2JhMmIyNzQ4ODU2NTkzNTMxMzYjcmQN\"\n" +
                "            },\n" +
                "            {\n" +
                "                \"Title\": \"平析 | 揭秘：美国在南海接连损伤两艘战舰绝非意外！事发前曾闯入我国12海里领海\",\n" +
                "                \"content\": \"\",\n" +
                "                \"hotValue\": \"56868\",\n" +
                "                \"sortId\": 18,\n" +
                "                \"type\": \"1\\n\",\n" +
                "                \"url\": \"aHR0cDovL21wLndlaXhpbi5xcS5jb20vcz9fX2Jpej1Nak01TXpVNE9EazJNQT09Jm1pZD0yNzM1NDUxOTA1JmlkeD0xJnNuPTQ3ZjJhODZlZjMxYjdiNGM1ZjRlOThjZGI5ZTJmZTIzJmNoa3NtPTgwNmJiYzhlYjcxYzM1OTg1Zjk1N2FjYzk1MzJmZDc5Yjk4NDFiYWM2ZWI3ZmMzNjZhN2Y1MTBhMzVmMGQ4MzI2ODRlZWQ1NDM1YzYjcmQN\"\n" +
                "            },\n" +
                "            {\n" +
                "                \"Title\": \"印军冲撞造成中方人员受伤！中方已向印方提出严正交涉\",\n" +
                "                \"content\": \"\",\n" +
                "                \"hotValue\": \"52106\",\n" +
                "                \"sortId\": 19,\n" +
                "                \"type\": \"1\\n\",\n" +
                "                \"url\": \"aHR0cDovL21wLndlaXhpbi5xcS5jb20vcz9fX2Jpej1Nak01TVRFMk5EVXdNQT09Jm1pZD0yNjU2OTkzNjA4JmlkeD0xJnNuPWFlNmQ2NDRjZmE5MGU2YzkyMzI2OWM2MTdkOWE4NmI0JmNoa3NtPWJkMTM5MDczOGE2NDE5NjU1ZGJkMTIyYWQ4MTJmYjcyZWEwYzc0YTRmN2EyM2U1MzkyMjg5ZjRhZDAwZWVkYjUwZjE0NmMzYzEzOWIjcmQN\"\n" +
                "            },\n" +
                "            {\n" +
                "                \"Title\": \"美国军舰在南海中邪了，暴露出三个惊人的秘密！\",\n" +
                "                \"content\": \"\",\n" +
                "                \"hotValue\": \"51808\",\n" +
                "                \"sortId\": 20,\n" +
                "                \"type\": \"1\\n\",\n" +
                "                \"url\": \"aHR0cDovL21wLndlaXhpbi5xcS5jb20vcz9fX2Jpej1NekE1T1RrNE5EWXdNdz09Jm1pZD0yNjUxMjExOTkwJmlkeD0xJnNuPWQ5MmZkYTcyNDczOTJjZmM5NTlhMjMyMTU3YTkxYmYxJmNoa3NtPThiMGIxZDYyYmM3Yzk0NzQ4NGU3ZWVlNjNmMWUwMzgzN2NiZWY2NDI4M2IwNDdmNDJlMDFjZjlhNzlkYWNhZTk2Y2I3MTZlNWJhZTcjcmQN\"\n" +
                "            },\n" +
                "            {\n" +
                "                \"Title\": \"太奸诈！西藏发现两大天价宝贝，数量惊人！难怪印度会找上门来！\",\n" +
                "                \"content\": \"\",\n" +
                "                \"hotValue\": \"44011\",\n" +
                "                \"sortId\": 21,\n" +
                "                \"type\": \"2\\n\",\n" +
                "                \"url\": \"aHR0cDovL21wLndlaXhpbi5xcS5jb20vcz9fX2Jpej1NekE0TVRnek9UTTNOQT09Jm1pZD0yNjQ5OTA0MDI3JmlkeD0zJnNuPWM2MGRlZjg4ZTUzM2FkNzkxNDI5NGNjM2E3NDQwYzIwJmNoa3NtPTg3ODgyN2ZhYjBmZmFlZWNkMzBmZDc1OWZmZjA2NmMxN2EwMTkyOTE2NzJhYWNhOGY2ZmY1YTEwNzI5M2M0OGIzOTkwZGQzYmNjOGMjcmQN\"\n" +
                "            },\n" +
                "            {\n" +
                "                \"Title\": \"【关注】女子户籍为男改7年才成功，派出所要求她证明自己是女性\",\n" +
                "                \"content\": \"\",\n" +
                "                \"hotValue\": \"100149\",\n" +
                "                \"sortId\": 22,\n" +
                "                \"type\": \"2\\n\",\n" +
                "                \"url\": \"aHR0cDovL21wLndlaXhpbi5xcS5jb20vcz9fX2Jpej1Nak01TWpBeE5ETTRNQT09Jm1pZD0yNjY2MTY0NzMwJmlkeD0yJnNuPTc4OTFlZDJhOWJiM2M4YjA2ZDE3YzM0MzQwMDkxNTM3JmNoa3NtPWJkYjIxOGI5OGFjNTkxYWZmNTE1YWNkMTJiNDQ2MTNiNWQwOTIwMDQ3Mzg0MjhkMzRlM2EzZDc1MDgxOTA0NjRiNTVlMTM5M2FhNjYjcmQN\"\n" +
                "            },\n" +
                "            {\n" +
                "                \"Title\": \"女友喝醉在车里，男友走开前做了个动作，竟差点要了她的命！\",\n" +
                "                \"content\": \"\",\n" +
                "                \"hotValue\": \"100000\",\n" +
                "                \"sortId\": 23,\n" +
                "                \"type\": \"2\\n\",\n" +
                "                \"url\": \"aHR0cDovL21wLndlaXhpbi5xcS5jb20vcz9fX2Jpej1NVEl6TkRnM056WTJNQT09Jm1pZD0yNjUzMDI1NjE3JmlkeD0xJnNuPTdiYjNkMmIzODhhMmJhZmU0ZDQzY2M5OWFkMzliNzU0JmNoa3NtPTdhNzAxZWUyNGQwNzk3ZjQwNWZiMDE4MTcyYjkzNzk3YzRkZTMyODBmMGRkMDMxMjE0ZmZjMzdkZTdhNWExNzFhMDQ0MzY1ZWY4MjkjcmQN\"\n" +
                "            },\n" +
                "            {\n" +
                "                \"Title\": \"您的戒指被胡萝卜找到啦！| 冷兔小报 No. 086\",\n" +
                "                \"content\": \"\",\n" +
                "                \"hotValue\": \"100000\",\n" +
                "                \"sortId\": 24,\n" +
                "                \"type\": \"2\\n\",\n" +
                "                \"url\": \"aHR0cDovL21wLndlaXhpbi5xcS5jb20vcz9fX2Jpej1NVGd3TlRFM01qZzJNQT09Jm1pZD0yNjUyNTIxNzcxJmlkeD0xJnNuPTUwNTRlYzYzMmVkYTllZmQwZTNkMGU4ZDhlN2Y4MTY1JmNoa3NtPTU4NDlkMjM4NmYzZTViMmU0MGYyNGVmYWRkNmNhOTJjMjUzNjI0MGZlNjNhNzliZDMyMjY0OWJmMmRlMjA5MzNmMzJmN2ZlMmQwMDMjcmQN\"\n" +
                "            },\n" +
                "            {\n" +
                "                \"Title\": \"女孩在婚姻登记处等到落泪，与男友聊天记录曝光！网友：值！｜新闻早茶\",\n" +
                "                \"content\": \"\",\n" +
                "                \"hotValue\": \"97287\",\n" +
                "                \"sortId\": 25,\n" +
                "                \"type\": \"2\\n\",\n" +
                "                \"url\": \"aHR0cDovL21wLndlaXhpbi5xcS5jb20vcz9fX2Jpej1Nak01TWpBME1EazJNQT09Jm1pZD0yNjUyNDA0MjEyJmlkeD0xJnNuPTUyMWNkMjc3MmY5MDVkMzQ4ODVhN2VkZGMwYjE1OTdkJmNoa3NtPWJkNDA4ODliOGEzNzAxOGQzOWQxNDgyNmZkZmU3NDRiZTIyOTViM2Q1M2VmZTUyZWNmMjViYTllNzcyNTdlZDQxZmQ5NTZiNTAzZjIjcmQN\"\n" +
                "            },\n" +
                "            {\n" +
                "                \"Title\": \"七夕丨开启你的「樱花」告白\",\n" +
                "                \"content\": \"\",\n" +
                "                \"hotValue\": \"95861\",\n" +
                "                \"sortId\": 26,\n" +
                "                \"type\": \"2\\n\",\n" +
                "                \"url\": \"aHR0cDovL21wLndlaXhpbi5xcS5jb20vcz9fX2Jpej1NekEzT0RneU1USXpNdz09Jm1pZD0yNjU2MTQ1NDMyJmlkeD0xJnNuPTgyMzkxNTI0NGRmYjU4YzQ3ZGVhY2U1ZDdiY2ViNzI2JmNoa3NtPTg0MTlkMjA2YjM2ZTViMTA4NjA3NzgwYWM1OWQ0Y2ZmNjIxMzI0NzU4Nzk4YmE5ZjQzMGNiNDdmOTU4YjI1N2JhMmU4NTUzZjZlNzMjcmQN\"\n" +
                "            },\n" +
                "            {\n" +
                "                \"Title\": \"三堡居民上千万拆迁款被卷走!大家眼里的\\\"好人\\\"阿珍留下一张字条,举家消失! | 新闻早评\",\n" +
                "                \"content\": \"\",\n" +
                "                \"hotValue\": \"89076\",\n" +
                "                \"sortId\": 27,\n" +
                "                \"type\": \"2\\n\",\n" +
                "                \"url\": \"aHR0cDovL21wLndlaXhpbi5xcS5jb20vcz9fX2Jpej1Nak01Tnprd05UQTVNZz09Jm1pZD0yNjUxODQ5Mzk4JmlkeD0xJnNuPWE1MWMxNzhkMjE5YTFmODFmYjQzMDhmY2MwZWUxZjU2JmNoa3NtPWJkMzY3NTFkOGE0MWZjMGI3MzljMmY1YWQ3ZmQzZGI4NzU3NmJjZDZlYTNmN2I0NDliY2M2ZDIwMTA4OGRmODU5OGM0Zjc3MzYzZWIjcmQN\"\n" +
                "            },\n" +
                "            {\n" +
                "                \"Title\": \"男子学车遭男教练性侵导致受伤 教练被拘10日\",\n" +
                "                \"content\": \"\",\n" +
                "                \"hotValue\": \"54202\",\n" +
                "                \"sortId\": 28,\n" +
                "                \"type\": \"2\\n\",\n" +
                "                \"url\": \"aHR0cDovL21wLndlaXhpbi5xcS5jb20vcz9fX2Jpej1Nak01TnpJM05EZzRNQT09Jm1pZD0yNjU4NDkwNTcxJmlkeD0zJnNuPTc4NWFmNTA2OTU1ODg0YTdiZGRjN2QyNTZjYzIzMzYwJmNoa3NtPWJkNWQ4Y2E0OGEyYTA1YjI4ZGU4ZGEyZThlNTliMGNhODk2MDg3NDEwYjcxZTNjZTQ2NjIwNjNkYTE3ZjZhOWM2YmJhNDhhZDgzYTMjcmQN\"\n" +
                "            },\n" +
                "            {\n" +
                "                \"Title\": \"年轻妈妈在哺乳，6岁男孩连拍数张照片！对方家长和围观者都说“他还小懂什么”\",\n" +
                "                \"content\": \"\",\n" +
                "                \"hotValue\": \"52583\",\n" +
                "                \"sortId\": 29,\n" +
                "                \"type\": \"2\\n\",\n" +
                "                \"url\": \"aHR0cDovL21wLndlaXhpbi5xcS5jb20vcz9fX2Jpej1NVEUxT1RFME16VTJNUT09Jm1pZD0yNjYzMzY4MzQ2JmlkeD0xJnNuPTM3OWY3ZDE0ZDM4YmM3N2Y3Y2MxYzA5NzU0MmZiZjMwJmNoa3NtPTc2NjNiMTdjNDExNDM4NmFjZDg1ZTFmNGFkMGE2MGZkYmFlMGI1ZDcyZDM4ZGE2ZjYzYjE4NzY0NTE0Mzc1MzI2MmI0OWU1NzRkYjQjcmQN\"\n" +
                "            },\n" +
                "            {\n" +
                "                \"Title\": \"男子弄丢一辆公共自行车，被要求赔5倍押金或找回3辆失车 | 南都早餐\",\n" +
                "                \"content\": \"\",\n" +
                "                \"hotValue\": \"49516\",\n" +
                "                \"sortId\": 30,\n" +
                "                \"type\": \"2\\n\",\n" +
                "                \"url\": \"aHR0cDovL21wLndlaXhpbi5xcS5jb20vcz9fX2Jpej1NVGsxTWpJd09EQXdNUT09Jm1pZD0yNjUwNzM5ODkyJmlkeD0xJnNuPWU2MDEyMGUzZTcwY2NkZWQ4YjJiZGM1ZWY1ZTc3ZThiJmNoa3NtPTQ0NjgxNzVhNzMxZjllNGMyYjdjMGVjZDNjYjJiMDU0N2VkZTgwMTExMDEyNDY4NzRmZWEyZTQ1Mjk1NDcxOGJkNWUxMGJiODdlYjYjcmQN\"\n" +
                "            },\n" +
                "            {\n" +
                "                \"Title\": \"超好听的英文版《把悲伤留给自己》，翻译也美醉了！\",\n" +
                "                \"content\": \"\",\n" +
                "                \"hotValue\": \"86267\",\n" +
                "                \"sortId\": 31,\n" +
                "                \"type\": \"3\\n\",\n" +
                "                \"url\": \"aHR0cDovL21wLndlaXhpbi5xcS5jb20vcz9fX2Jpej1NekF3TVRZM09EVTFOdz09Jm1pZD0yNjk4NDgyMDA1JmlkeD03JnNuPTU5MzBlMTE5MWIzNjU2ZmFhZmZmZGZkOGI5MDUyODY1JmNoa3NtPWJmZjUzY2U3ODg4MmI1ZjFlYzg1ZTY0NGY4NTdhMTVjYjVmMTM4NGUwYjBlMGU5ZmVlZDE4OTk0NmY0MmFmMmM4OTAyNjE0ZDQ1NTYjcmQN\"\n" +
                "            },\n" +
                "            {\n" +
                "                \"Title\": \"今天都在传这个警察，快看看吧！\",\n" +
                "                \"content\": \"\",\n" +
                "                \"hotValue\": \"75960\",\n" +
                "                \"sortId\": 32,\n" +
                "                \"type\": \"3\\n\",\n" +
                "                \"url\": \"aHR0cDovL21wLndlaXhpbi5xcS5jb20vcz9fX2Jpej1Nekl6TmpFMU16STVNQT09Jm1pZD0yNjYwNTIyMzkyJmlkeD0zJnNuPWNjOTMwZWZmZjYwZjZlZTUzMzUwYjQyNjA1MWFjMDA5JmNoa3NtPWYzYmNjOTNkYzRjYjQwMmI2NGYyZGQ2M2E4MDJlNWY2NjhlODA3YTMxODhkN2JkNDNmNGVkMzUxM2NlNjJlNTIwZjkyNDk1NjhiMWYjcmQN\"\n" +
                "            },\n" +
                "            {\n" +
                "                \"Title\": \"疯狂！他放弃阿里巴巴几十万年薪，自掏腰包每天被“打”！却活成了自己最想要的样子……\",\n" +
                "                \"content\": \"\",\n" +
                "                \"hotValue\": \"51026\",\n" +
                "                \"sortId\": 33,\n" +
                "                \"type\": \"3\\n\",\n" +
                "                \"url\": \"aHR0cDovL21wLndlaXhpbi5xcS5jb20vcz9fX2Jpej1NVEl4TWpFek16YzBNUT09Jm1pZD0yNjcxNTk0ODI0JmlkeD0xJnNuPTg1YWY2MjUwZmI3Y2JmZTg1Y2QwNTM3Y2Y4MTg2YjMxJmNoa3NtPTdhYzlhYjRhNGRiZTIyNWNjNTExMjgyY2ZjZGE0MWEyZjI4NzNiZjI4YjdlZGEyYTgzZjFjYzQ3Y2Y3OTdhMDlhMDc2NmE1MGExMDQjcmQN\"\n" +
                "            },\n" +
                "            {\n" +
                "                \"Title\": \"杭州人注意！刷爆朋友圈的这个“战狼Ⅱ票房”链接！千万别点！\",\n" +
                "                \"content\": \"\",\n" +
                "                \"hotValue\": \"46275\",\n" +
                "                \"sortId\": 34,\n" +
                "                \"type\": \"3\\n\",\n" +
                "                \"url\": \"aHR0cDovL21wLndlaXhpbi5xcS5jb20vcz9fX2Jpej1NVEE1TXpjM01EUXlNQT09Jm1pZD0yNjU4Mzc2Mzk4JmlkeD0xJnNuPTg1YWI5NjI0YzI1MDI5OGZiMzM5ODQ2YWEyMDA3YWNkJmNoa3NtPTcyODk1MTE1NDVmZWQ4MDMzZjI4NDMzN2IzOThmMzdiOTM0MTZjNGI5MGE3Y2Q5YjBkY2FhMTE0ODExYmQ3NmY0NDUxOTdhY2I2ODIjcmQN\"\n" +
                "            },\n" +
                "            {\n" +
                "                \"Title\": \"早上好，一首天籁之音送给你，听了心里好舒坦！\",\n" +
                "                \"content\": \"\",\n" +
                "                \"hotValue\": \"42484\",\n" +
                "                \"sortId\": 35,\n" +
                "                \"type\": \"3\\n\",\n" +
                "                \"url\": \"aHR0cDovL21wLndlaXhpbi5xcS5jb20vcz9fX2Jpej1NekE0TWpNM09EY3dPQT09Jm1pZD0yNjUyNzM4OTY5JmlkeD0yJnNuPTA0ZmJmODZhZTU5NTBiYzA4N2ExMWM1N2U2ZGI5MjQ5JmNoa3NtPTg0NmY5ZjIyYjMxODE2MzQwZGRkNTAyOTVkYzI1OGZiZWJhNmQ1NjVhOWNlMTIwZTBjOTk1MDQ2YjdkM2M1NTMwZjZlMjA0Mjk3ZmYjcmQN\"\n" +
                "            },\n" +
                "            {\n" +
                "                \"Title\": \"经典老歌2000首（微信珍藏版）！收藏好，慢慢听！\",\n" +
                "                \"content\": \"\",\n" +
                "                \"hotValue\": \"37172\",\n" +
                "                \"sortId\": 36,\n" +
                "                \"type\": \"3\\n\",\n" +
                "                \"url\": \"aHR0cDovL21wLndlaXhpbi5xcS5jb20vcz9fX2Jpej1NekEzTXpVME56VXlPQT09Jm1pZD0yNjUyOTI2NjY2JmlkeD02JnNuPWUxZDhjZDY2ZWJkNzIzNjZkMTI4MDI3Y2E4ZjdkNGU4JmNoa3NtPTg0ZDliOGFkYjNhZTMxYmIxZjA3Zjk4ZmYyNjY5ZGRmZjMyMTRkYTA5NjZiMDEyNzUxZWNhOGUzN2JmYmIxMDllODdmMzkzZjI1ODQjcmQN\"\n" +
                "            },\n" +
                "            {\n" +
                "                \"Title\": \"小球球自曝已有喜欢的人，难道是他？九天透露停播原因，利哥为爱徒加油！小闪电团队畅游运城盐池！悦享好声音：最美纹身师阮微！\",\n" +
                "                \"content\": \"\",\n" +
                "                \"hotValue\": \"27104\",\n" +
                "                \"sortId\": 37,\n" +
                "                \"type\": \"3\\n\",\n" +
                "                \"url\": \"aHR0cDovL21wLndlaXhpbi5xcS5jb20vcz9fX2Jpej1NekEzTlRVd09EVTBPQT09Jm1pZD0yNjUwNzQxMTg3JmlkeD01JnNuPTJmZmIyZjNkODg3N2E5MDUyMWMxODc3Y2NlNDRhMGMxJmNoa3NtPTg3NjRjN2U4YjAxMzRlZmUxNWY1MGZhNzc3NjNkYTliMWIxN2VlMTc1YjU3ZDMyYmYxMTc0M2QzMjBiZWViZDg2NTI2ODhkMDQ4NzIjcmQN\"\n" +
                "            },\n" +
                "            {\n" +
                "                \"Title\": \"明日处暑 | 18把小提琴演奏《爱在深秋》,送给大家，美醉了!\",\n" +
                "                \"content\": \"\",\n" +
                "                \"hotValue\": \"26799\",\n" +
                "                \"sortId\": 38,\n" +
                "                \"type\": \"3\\n\",\n" +
                "                \"url\": \"aHR0cDovL21wLndlaXhpbi5xcS5jb20vcz9fX2Jpej1NekEzTmpjeE1URTBNdz09Jm1pZD0yNjQ5ODAwNzExJmlkeD0xJnNuPTUzNGMyNmM3M2VhM2FiYjQyNGY4YmVlM2U0NGI5NTgxJmNoa3NtPTg3NTk3NThmYjAyZWZjOTlkYWIzODc4MmUyYzJlYjU3ODc5MThhNjZjYThmMzhjMzc0ZDA4ZmQ5N2M0ZGVkNzVjM2M2ZGY0OGFkMWYjcmQN\"\n" +
                "            },\n" +
                "            {\n" +
                "                \"Title\": \"● 好漂亮！送给你的好友们看看！\",\n" +
                "                \"content\": \"\",\n" +
                "                \"hotValue\": \"26077\",\n" +
                "                \"sortId\": 39,\n" +
                "                \"type\": \"3\\n\",\n" +
                "                \"url\": \"aHR0cDovL21wLndlaXhpbi5xcS5jb20vcz9fX2Jpej1NekE0T0RrNE9EWTFOUT09Jm1pZD0yNjUzNzYwMDcyJmlkeD0xJnNuPTk4MTczNjI4MTBlMTFiMTc0MzZhNTcwY2RlMWUzODQ2JmNoa3NtPThiZjg0NGM4YmM4ZmNkZGVjYzYzOTE4NDVhZGQ1NWM4NGMwNWFlNGY5ZjBhYTUyZWM2ZjJhODJlNzgyZTdmY2NmYWViZTY3MjdmZDEjcmQN\"\n" +
                "            },\n" +
                "            {\n" +
                "                \"Title\": \"导演出轨女演员， 还为她拍了三部电影洗白？\",\n" +
                "                \"content\": \"\",\n" +
                "                \"hotValue\": \"24559\",\n" +
                "                \"sortId\": 40,\n" +
                "                \"type\": \"3\\n\",\n" +
                "                \"url\": \"aHR0cDovL21wLndlaXhpbi5xcS5jb20vcz9fX2Jpej1Nekl6TVRjME9ERXlPUT09Jm1pZD0yMjQ3NDg2ODk5JmlkeD02JnNuPWE1NmY0Yzk2OWVjOTU1N2YzZTM3YmIxNzg0MGNjNTJjJmNoa3NtPWU4OWUyYWZkZGZlOWEzZWI1ZDkwZDA3ZDI3ZDQ3M2Q4YTMzZGUyZjg3OWNiYjI3N2E4Y2I4Y2M3ZWFlZmVkNGQ0MjlkYjNlMWQ4ZDYjcmQN\"\n" +
                "            }]\n" +
                "        }\n" +
                "\t}\n" +
                "}";
//        String tempjson = "{\n" +
//                "    \"opid\": \"121221134\",\n" +
//                "    \"sendtime\": 1234567890,\n" +
//                "    \"datatype\": \"dayhot\",\n" +
//                "    \"source\": {\n" +
//                "        \"code\": 200,\n" +
//                "        \"desc\": \"请求成功\",\n" +
//                "        \"data\": {\n" +
//                "            \"createtime\": \"2017-08-22 05:05:24\",\n" +
//                "            \"list\": [{\n" +
//                "                \"Title\": \"特朗普当选美国总统\",\n" +
//                "                \"hotValue\": \"80282\",\n" +
//                "                \"sortId\": 1,\n" +
//                "                \"type\": \"0\\n\",\n" +
//                "                \"url\": \"aHR0cDovL21wLndlaXhpbi5xcS5jb20vcz9fX2Jpej1Nak01TnpRNU1Ua3lNQT09Jm1pZD0yNjU2ODcxMjE1JmlkeD0xJnNuPWNlYTFiOTc3Mzc2YTU4Yjc0NmE3YTZhODFmZDgzZTUyJmNoa3NtPWJkNzEyNjkwOGEwNmFmODY1NDk4Nzg2ZTA0NTE4ZDQyODQyNzZhZWZlYWQ2OTAyODFkYWNlZGZkMzM2Y2Y5MGFiYmZlOWQ2OGViZWYjcmQN\",\n" +
//                "                \"content\": \"PHA+c2Rmc2RmPC9wPg==\"\n" +
//                "            },\n" +
//                "            {\n" +
//                "                \"Title\": \"取暖时这些事一定要小心\",\n" +
//                "                \"hotValue\": \"80282\",\n" +
//                "                \"sortId\": 1,\n" +
//                "                \"type\": \"0\\n\",\n" +
//                "                \"url\": \"aHR0cDovL21wLndlaXhpbi5xcS5jb20vcz9fX2Jpej1Nak01TnpRNU1Ua3lNQT09Jm1pZD0yNjU2ODcxMjE1JmlkeD0xJnNuPWNlYTFiOTc3Mzc2YTU4Yjc0NmE3YTZhODFmZDgzZTUyJmNoa3NtPWJkNzEyNjkwOGEwNmFmODY1NDk4Nzg2ZTA0NTE4ZDQyODQyNzZhZWZlYWQ2OTAyODFkYWNlZGZkMzM2Y2Y5MGFiYmZlOWQ2OGViZWYjcmQN\",\n" +
//                "                \"content\": \"PHA+c2Rmc2RmPC9wPg==\"\n" +
//                "            }]\n" +
//                "        }\n" +
//                "    }\n" +
//                "}";
////        JSONObject jsonObject = JSONObject.parseObject(tempjson);
////        String s = jsonObject.getString("opid1");
////        System.out.println(s);
        try {
            httpUtils.post("http://localhost:7349/wxyq/", tempjson);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
